<?php
if ( !defined('IN_SCRIPT') )  { header("Location: index.php"); exit;} 

$page_title = $lang['auth_title'];  

$data = get_link(get_param('link'));
if($data === false) {
    add_message($lang['wrong_outbound_link']);
    $smarty->assign('content', 'error');
} else {
    $link = $data['link'];
    $smarty->assign('link', $link);
    $lang['redirect_body'] = sprintf($lang['redirect_body'], $link);
    $smarty->assign('content', 'redirect_page');
}
?>
